package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

import static org.jsola.hr.example.CompanySaleRebatesRulesExample.E_COMPANY_ID;
import static org.jsola.hr.example.CompanySaleRebatesRulesExample.E_REBATES_RULES_ID;
import static org.jsola.hr.example.CompanySaleRebatesRulesExample.E_REMARK;
import static org.jsola.hr.example.CompanySaleRebatesRulesExample.E_SERVER_TYPE;
import static org.jsola.hr.example.CompanySaleRebatesRulesExample.M_COMPANY_ID_MAX;
import static org.jsola.hr.example.CompanySaleRebatesRulesExample.M_COMPANY_ID_NOT_NULL;
import static org.jsola.hr.example.CompanySaleRebatesRulesExample.M_REBATES_RULES_ID_MAX;
import static org.jsola.hr.example.CompanySaleRebatesRulesExample.M_REBATES_RULES_ID_NOT_NULL;
import static org.jsola.hr.example.CompanySaleRebatesRulesExample.M_REMARK_MAX;
import static org.jsola.hr.example.CompanySaleRebatesRulesExample.M_SERVER_TYPE_MAX;
import static org.jsola.hr.example.CompanySaleRebatesRulesExample.N_COMPANY_ID;
import static org.jsola.hr.example.CompanySaleRebatesRulesExample.N_REBATES_RULES_ID;
import static org.jsola.hr.example.CompanySaleRebatesRulesExample.N_REMARK;
import static org.jsola.hr.example.CompanySaleRebatesRulesExample.N_SERVER_TYPE;

/**
 * 用工单位返费关联表
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【用工单位返费关联表】的参数")
@Data
public class CompanySaleRebatesRulesAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID, required = true)
    @NotNull(message = M_COMPANY_ID_NOT_NULL)
    @Length(max = 32, message = M_COMPANY_ID_MAX)
    private String companyId;

    @ApiModelProperty(notes = N_REBATES_RULES_ID, example = E_REBATES_RULES_ID, required = true)
    @NotNull(message = M_REBATES_RULES_ID_NOT_NULL)
    @Length(max = 32, message = M_REBATES_RULES_ID_MAX)
    private String rebatesRulesId;

    @ApiModelProperty(notes = N_REMARK, example = E_REMARK)
    @Length(max = 255, message = M_REMARK_MAX)
    private String remark;

    @ApiModelProperty(notes = N_SERVER_TYPE, example = E_SERVER_TYPE)
    @Length(max = 50, message = M_SERVER_TYPE_MAX)
    private String serverType;


}

